import numpy
import copy
from helper import influence_window
from helper import gauss_2d
 
class Cloth:
    def __init__(self, y, x, resolution):
        
        self.points = numpy.zeros((y, x, 3), dtype=numpy.float)
        for i in range(y):
            for j in range(x):
                self.points[i,j,0:3] = (j*resolution, 0, -i*resolution)
        
        self.points -= self.points[y-1,x-1] / 2.0        
        self.prev_points = self.points + (0, 0.001, 0)
        